package service.strategy;

import model.Paper;
import java.util.ArrayList;
import java.util.List;

public class SequentialSelectionStrategy implements PaperSelectionStrategy {
    @Override
    public List<Paper> selectPapers(List<Paper> availablePapers, int quantity) {
        if (quantity > availablePapers.size()) {
            throw new IllegalArgumentException("请求数量超过可用论文数量");
        }
        return new ArrayList<>(availablePapers.subList(0, quantity));
    }
}